home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 509 < prev    next >
Text File  |  1996-08-06  |  1KB  |  28 lines

  1. Newsgroups: comp.std.c
  2. Path: phcoms4.seri.philips.nl!panther!baynes
  3. From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes)
  4. Subject: Re: mapping a C structure
  5. Sender: news@ukpsshp1.serigate.philips.nl (account for localnews)
  6. Message-ID: <DnuB2y.AwD@ukpsshp1.serigate.philips.nl>
  7. Date: Wed, 6 Mar 1996 09:44:58 GMT
  8. References: <4hd0db$89l@wolfe.wimsey.com>
  9. Organization: Philips Semiconductors, Southampton, UK
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Owen Townsend (owent@vanbc.wimsey.com) wrote:
  13. : Does anybody have a program to calculate byte displacements for all fields
  14. : within a C structure ?
  15.  
  16. You ANSI standard C compiler should have offsetof defined in <stddef.h>.
  17.  
  18. : I am assisting mainframe COBOL users to convert to Unix Micro Focus COBOL
  19.  
  20. ANSI C does not require that the compiler handling of structures is in anyway 
  21. compatible with any other compiler, cobol or otherwise.
  22.  
  23. --
  24. Stephen Baynes                              baynes@ukpsshp1.serigate.philips.nl
  25. Philips Semiconductors Ltd
  26. Southampton                                 My views are my own.
  27. United Kingdom
  28.